﻿@model Tasker.WebUI.Models.RegisterModel

@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_AuthLayout.cshtml";
}

@section LoginPanelLinks
{
    @Html.ActionLink("Войти", "LogOn")
}

@Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { id = "auth-form" }))
{
    <div>
        <h1 class="login-panel-title">Регистрация</h1>
        <div class="editor-label">
            @Html.LabelFor(m => m.Login)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Login)
            @Html.ValidationMessageFor(m => m.Login)
        </div>
       

        <div class="editor-label">
            @Html.LabelFor(m => m.Position)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Position)
            @Html.ValidationMessageFor(m => m.Position)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmPassword)
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>

        <div class="button-wrapper">
            <a href="javascript:;" id="login-submit" onclick="$('#auth-form').submit();" class="btn btn-primary btn-large">
                Регистрация
            </a>
        </div>
    </div>
}
